define(['jquery'],() => {
   class Footer{
      constructor(){
         this.loadHTML().then(() => {
            //将异步的代码用同步的方式执行
            
         })
      }
      loadHTML (){
         return new Promise(resolve => {
            $('footer').load('/html/modules/footer.html',()=>{
               resolve()
            })
         })
         
      }
   }
   return new Footer()
})